-- GENERATED SPELL FOR [Treasure Hunting Buccaneer] --


function spell0_7902(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7902', 602, 1)
end

function Sorts_7902(pUnit, Event)
local choix_sorts_7902 = math.random(0, 0)
if choix_sorts_7902 == 0 then
pUnit:RegisterEvent('spell0_7902', 1, 1)
end
end

function mob7902_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7902', math.random(1500, 3000), 1)
end

function mob7902_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7902_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7902_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7902, 1, 'mob7902_Action')
RegisterUnitEvent(7902, 2, 'mob7902_Leave')
RegisterUnitEvent(7902, 3, 'mob7902_Kill')
RegisterUnitEvent(7902, 4, 'mob7902_Die')
